package stream;

import java.util.List;

public class Deduplication {
    public static void main(String[] args) {
        List<Integer> list = List.of(1, 2, 2, 3, 3, 4, 5, 4, 4);
        System.out.println(list.stream().distinct().toList());
    }
}
